window.onload=function(){
    var vm=new Vue({
        el:'#app',
        data:{
            //查询关键字
            query:'',
            //存放歌曲的数组
            musicList: [],
        },
        methods: {
            searchMusic:()=>{
                console.log(this.query)
                var that = this;
                axios.get('https://autumnfish.cn/search?keywords='+this.query).then(
                    res=>{
                        this.musicList=res.data.result.songs
                        console.log(this.musicList)
                        
                    }
                )
            }
        },
    
    })
}